package com.framework.disconf.web.action;

import com.framework.disconf.property.ApplicationProperty;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class ConfAction {

    private static final Logger logger = LoggerFactory.getLogger(ConfAction.class);

    @Autowired
    private ApplicationProperty property;

    @RequestMapping(value = "/getApplicationProperty", method = RequestMethod.POST)
    public String getApplicationProperty() {
        return property.getUrl();
    }

}